home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / berm122 / utextra.pro < prev   
Text File  |  1993-08-16  |  2KB  |  70 lines

  1. #if __PROTO__
  2. # define    P(s) s
  3. #else
  4. # define P(s) ()
  5. #endif
  6.  
  7. /* utextra.c */
  8.  
  9. #if UNIX | BWIN32
  10. struct date
  11. {
  12.     int    da_year;                     /* Current year */
  13.     char   da_day;                      /* Day of the month */
  14.     char   da_mon;                      /* Month ( 1 = Jan ) */
  15. };
  16.  
  17. struct time
  18. {
  19.     unsigned char   ti_min;             /* Minutes */
  20.     unsigned char   ti_hour;            /* Hours */
  21.     unsigned char   ti_hund;            /* Hundredths of seconds */
  22.     unsigned char   ti_sec;             /* Seconds */
  23. };
  24.  
  25. void getdate P((struct date *date));
  26. void gettime P((struct time *time));
  27. #endif
  28.  
  29. void setstamp P((char *name , char *buf ));
  30. #ifdef LINN
  31. static void conv P((unsigned long getal , char *p , int base , int unsign, int low));
  32. #else
  33. static void conv P((unsigned long getal , char *p , int base , int unsign));
  34. #endif
  35. #if UNIX==0
  36. static void cdecl iprint P((void (*outp)(char) , char *fmt, ... ));
  37. void cdecl doprint P((void (*outp )(char ), char *fmt , ... ));
  38. void cdecl fmprint P((char *buf , char *fmt , ... ));
  39. void cdecl sprint P((char *buf , char *fmt , ... ));
  40. void cdecl message P((int level , char *fmt , ... ));
  41. void cdecl clprint P((char *fmt , ... ));
  42. void cdecl print P((char *fmt , ... ));
  43. #else
  44. /* varargs... being very bad on C, I've been unable to handle them correctly on Unix - VP */
  45. static void cdecl iprint();
  46. void cdecl doprint();
  47. void cdecl fmprint();
  48. void cdecl sprint();
  49. void cdecl message();
  50. void cdecl clprint();
  51. void cdecl print();
  52. #endif
  53. char *ffirst P((char *name ));
  54. char *fnext P((void ));
  55. #ifdef MSTRUPR
  56. char *strupr P((char *str ));
  57. #endif
  58. #ifdef MSTRDUP
  59. char *strdup P((char *s));
  60. #endif
  61. int is_arcmail P((char *p , int n ));
  62. int execute P((char *prg , char *cmd ));
  63. int weekday P((struct date *d ));
  64. unsigned int ztoi P((char *str , int len ));
  65. int getadress P((char *str , int *zone , int *net , int *node ));
  66. unsigned inteli P((int x));
  67. long intell P((long x));
  68.  
  69. #undef P
  70.